package com.gjy.concurrency.beautiful;

import org.junit.jupiter.api.Test;

import java.util.UUID;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;

/**
 * @author 宫静雨
 * @version 1.0
 * @since 2023-06-13 09:44:30
 */
public class AQSTest {

    @Test
    public void test1() {
        ExecutorService pool = Executors.newFixedThreadPool(3);

        Future<String> submit = pool.submit(() -> {
            return UUID.randomUUID().toString();
        });


    }
}
